'#########################
'Traffic Light for Persons
'#########################

'Traffic Light for Persons
'Phase 6..8: yellow on
'Else: yellow off

'(c) 1.5.2008 Marcel Kuhnt
'Variables changed by Thiago for use with Belisha Beacon

'Script Version: 1.0
'Omsi release: 1.0

'Needs:
'- none

{init}
	0 (S.L.Timer)
	0 (S.L.Yellow)
{end}

{frame}
	1 1 =
	{if}
		(L.L.Timer) (L.S.Timegap) + (S.L.Timer) s1
		1 >
		{if}
			0 (S.L.Timer)
			0.7 (S.L.Yellow)
		{else}
			l1 0.5 >
			{if}
				0 (S.L.Yellow)
			{endif}
		{endif}
	{else}
		0 (S.L.Yellow)
	{endif}
{end}